package com.springboot.demo.linked;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 节点
 *
 * @author supu
 * @create 2018-05-11 16:59
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Node<T> {
    /**
     * 数据
     */
    private T data;
    /**
     * 指针
     */
    private Node next;

    public Node(T data) {
        this.data = data;
    }
}
